import axios from '@/request.js'


export function getrule(page){
    
    return axios.get(`/rule?page=${page}`);
  } 

export function create(data) {
    return axios.post("/rule/create", data);
  }

export function update(id,data) {
  return axios.post(`/rule/update?id=${id}`, data);
}

export function del(id){
  return axios.post(`/rule/delete/id/${id}`);
}